﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.DAL.Migrations
{
	public class AddColumnProductIdToOrder : DbMigration
	{
		public override void Up()
		{
			AddColumn("dbo.Orders", "ProductId", c => c.Byte());

			Sql("UPDATE dbo.Orders SET ProductId = 0 ");
		}

		public override void Down()
		{
			DropColumn("dbo.Orders", "ProductId");
		} 
	}
}
